import 'package:json_annotation/json_annotation.dart';

part 'scout_order_model.g.dart';


@JsonSerializable()
class ScoutOrderModel extends Object {

  @JsonKey(name: 'code')
  int code;

  @JsonKey(name: 'message')
  String message;

  @JsonKey(name: 'data')
  ScoutOrderData scoutOrderData;

  ScoutOrderModel(this.code,this.message,this.scoutOrderData,);

  factory ScoutOrderModel.fromJson(Map<String, dynamic> srcJson) => _$ScoutOrderModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$ScoutOrderModelToJson(this);

}


@JsonSerializable()
class ScoutOrderData extends Object {

  @JsonKey(name: 'report')
  String report;

  @JsonKey(name: 'loss')
  String loss;

  @JsonKey(name: 'already')
  String already;

  @JsonKey(name: 'dispute')
  String dispute;

  @JsonKey(name: 'suc')
  String suc;

  @JsonKey(name: 'repair')
  String repair;

  @JsonKey(name: 'repair_completed')
  String repairCompleted;

  @JsonKey(name: 'case')
  String revocation;

  ScoutOrderData(this.report,this.loss,this.already,this.dispute,this.suc,this.repair,this.repairCompleted,this.revocation,);

  factory ScoutOrderData.fromJson(Map<String, dynamic> srcJson) => _$ScoutOrderDataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$ScoutOrderDataToJson(this);

}


